package router

import (
	"github.com/gin-gonic/gin"
	"hotel_3.27/api/handler"
)

func LoadRouter(r *gin.Engine) {
	user := r.Group("/user")
	{
		user.POST("/sendSms", handler.SendSms)
		user.POST("/login", handler.Login)
	}

	order := r.Group("/order")
	{
		order.POST("/add", handler.OrderAdd)
		order.GET("/list", handler.OrderList)
	}

}
